#pragma once
#include "GraphicLibrary.h"
#include "cairo/cairo.h"
#include "cairo/cairo-win32.h"

class CairoLibrary : public IGraphicLibrary
{
private:
	cairo_t* context;
public:
	IGraphicLibrary* Clone();
	void DrawLine(int x1, int y1, int x2, int y2, COLORREF color, int strokewidth);
	void DrawRectangle(int x, int y, int width, int height, COLORREF color, int strokewidth, COLORREF fill);
	void DrawEllipse(int cx, int cy, int rx, int ry, COLORREF color, int strokewidth, COLORREF fill);
	CairoLibrary(HWND winHandle);
	CairoLibrary(const CairoLibrary& copy);
	~CairoLibrary(void);
};

